/* 
 * File:   XTimeOut.h
 * Author: minaev
 *
 * Created on 25 Октябрь 2013 г., 11:38
 */

#ifndef XTIMEOUT_H
#define	XTIMEOUT_H

#include <sys/time.h>

class XTimeOut {
public:
    XTimeOut(unsigned long delay);
    virtual ~XTimeOut();
    void startTimeOut();
    bool isTimeOut();
    void setDelay(unsigned long delay);
    unsigned long getMillisecondsTime();
private:
    unsigned long delay;
    unsigned long startTime;
    unsigned long endTime;
    
};

#endif	/* XTIMEOUT_H */

